package com.jiang.dao.Impl;

import com.jiang.dao.BookDao;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import javax.annotation.PostConstruct;

//@Component("bookDao")
@Repository("bookDao")
//@Scope("singleton"|"prototype")
public class BookDaoImpl implements BookDao {
    
    @Override
    public void save(){
        System.out.println("book dao save...");
    }
    
    @PostConstruct
    public void init(){
        System.out.println("init ...");
    }
}
